from kubernetes import config, client
from ygframe.builder import Builder
from ygframe.dev_tool import setting_generator, globals_generator, doc_generator

from globals import GLOBALS

__author__ = 'jing'


def init():
    # config.load_kube_config()

    builder = Builder()
    builder.init_mongo()
    # builder.init_redis()
    builder.init_flask()
    builder.build()

    if GLOBALS.debug:
        setting_generator.generate()
        globals_generator.generate()
        doc_generator.generate()
